package org.bonorsoft.modules.control.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.bonorsoft.modules.control.entity.Label;
import org.bonorsoft.modules.control.entity.Population;
import org.bonorsoft.modules.control.mapper.PopulationMapper;
import org.bonorsoft.modules.control.service.IPopulationService;
import org.bonorsoft.modules.control.vo.PopulationVo;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 实有人口信息
 * @Author: WilliamYe
 * @Date:   2021-03-04
 * @Version: V1.0
 */
@Service
public class PopulationServiceImpl extends ServiceImpl<PopulationMapper, Population> implements IPopulationService {

    @Override
    public IPage<PopulationVo> paging(Page<Population> page, QueryWrapper<Population> queryWrapper) {
        return this.baseMapper.paging(page, queryWrapper);
    }

    @Override
    public List<PopulationVo> listing(QueryWrapper<Population> queryWrapper) {
        return this.baseMapper.listing(queryWrapper);
    }

    @Override
    public int saveBatchPhoto(List<PopulationVo> list) {
        return this.baseMapper.saveBatchPhoto(list);
    }

    @Override
    public List<Label> getLabel(String id) {
        return this.baseMapper.getLabel(id);
    }
}
